//@ts-ignore
import request from '@/utils/request';
//@ts-ignore
import {
  ResponseData
} from "@/api/screen/type";

/**
 * 图表接口集合
 */
enum API {
  USERS_GENDER_LIST_URL = '/screen/users/gender',
  PRODUCT_ISGROUP_GENDER_LIST_URL = '/screen/product/isgroup',
  PRODUCT_LIST_URL = '/screen/product/category',
  ORDER_TOTALPRICE_URL = '/screen/order/totalprice',
  ORDER_NUMBER_URL = '/screen/order/number',
  USER_NUMBER_URL = '/screen/user/number',
  MARCHANT_NUMBER_URL = '/screen/merchant/number'
}

export const reqScreenUsersGender = () =>
    request.post<any, ResponseData>(API.USERS_GENDER_LIST_URL)

export const reqScreenProductCategory = () =>
    request.post<any, ResponseData>(API.PRODUCT_LIST_URL)

export const reqScreenProductIsGroup = () =>
    request.post<any, ResponseData>(API.PRODUCT_ISGROUP_GENDER_LIST_URL)

export const reqScreenOrderTotalPrice = () =>
    request.post<any, ResponseData>(API.ORDER_TOTALPRICE_URL)

export const reqScreenOrderNumber = () =>
    request.post<any, ResponseData>(API.ORDER_NUMBER_URL)

export const reqScreenUserNumber = () =>
    request.post<any, ResponseData>(API.USER_NUMBER_URL)

export const reqScreenMarchantNumber = () =>
    request.post<any, ResponseData>(API.MARCHANT_NUMBER_URL)





